package com.sammy.appmonitor.main;

import com.parse.Parse;
import com.parse.ParseACL;

import com.parse.ParseUser;
import com.sammy.appmonitor.config.MyConstants;

import android.app.Application;

public class MainApplication extends Application {

	@Override
	public void onCreate() {
		super.onCreate();

//	    //Parse.initialize(this, "leS4VYMMyjl4m5iINeMCAgVVxVFgJgDt5IslWIMj", "I0IKSzlieUISgs3gPLrWsYPKzM6NH1lNCqxDqJfh");
		Parse.initialize(this, MyConstants.PARSE_APPLICATION_ID, MyConstants.PARSE_CLIENT_ID);
		ParseUser.enableAutomaticUser();
		ParseACL defaultACL = new ParseACL();
	    
		// If you would like all objects to be private by default, remove this line.
		defaultACL.setPublicReadAccess(true);
		
		ParseACL.setDefaultACL(defaultACL, true);

	}

}

